package site.beanyon.now.model.dto;

/**
 * 用于获取全部活动时的数据传输对象
 */
public final class ActivityDTO {
    /**
     * 活动名称
     */
    private String name;

    /**
     * 活动耗时，单位为分钟
     */
    private Long spentTimeMinutes;

    /**
     * 活动耗时比例
     */
    private String ratio;

    public ActivityDTO(String name, Long spentTimeMinutes) {
        this.name = name;
        this.spentTimeMinutes = spentTimeMinutes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSpentTimeMinutes() {
        return spentTimeMinutes;
    }

    public void setSpentTimeMinutes(Long spentTimeMinutes) {
        this.spentTimeMinutes = spentTimeMinutes;
    }

    public String getRatio() {
        return ratio;
    }

    public void setRatio(String ratio) {
        this.ratio = ratio;
    }

    @Override
    public String toString() {
        return "ActivityDTO{" +
                "name='" + name + '\'' +
                ", spentTimeMinutes=" + spentTimeMinutes +
                ", ratio='" + ratio + '\'' +
                '}';
    }
}
